<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/amazeui.min.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/admin.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/app.css">
</head>
<body>
	<div class="tpl-content-page-title">宠物设置</div>
	<ol class="am-breadcrumb">
		<li><a href="#" class="am-icon-home">首页</a></li>
		<li><a
			href="${pageContext.request.contextPath}/admin/childrenManager.do">宠物管理</a></li>
		<li class="am-active">宠物设置</li>
	</ol>
	<div class="tpl-portlet-components">
		<div class="tpl-block ">
			<div class="am-g tpl-amazeui-form">
				<div class="am-u-sm-12 am-u-md-9">
					<form class="am-form am-form-horizontal" action="${pageContext.request.contextPath}/admin/updateChildren.do" method="post">
						<div class="am-form-group">
							<label for="user-name" class="am-u-sm-3 am-form-label">宠物编号</label>
							<div class="am-u-sm-9">
								<input type="text" value="${children.id }" disabled>
							</div>
						</div>
						<div class="am-form-group">
							<label for="user-name" class="am-u-sm-3 am-form-label">姓名
								/ Name</label>
							<div class="am-u-sm-9">
								<input type="text" id="user-name" name="name"
									value="${children.name }" placeholder="姓名 / Name">
							</div>
						</div>
						<div class="am-form-group">
							<label for="user-email" class="am-u-sm-3 am-form-label">性别
								/ Sex</label>
							<div class="am-u-sm-9">
								<div class="am-radio">

									<c:if test="${children.sex==1}">
										<div class="am-radio">
											<label> <input type="radio" name="sex" value="1"
												checked> 男 </labe>
										</div>
										<div class="am-radio">
											<label> <input type="radio" name="sex" value="2">
												女
											</label>
										</div>
									</c:if>
									<c:if test="${children.sex==2}">
										<div class="am-radio">
											<label> <input type="radio" name="sex" value="1">
												男 </labe>
										</div>
										<div class="am-radio">
											<label> <input type="radio" name="sex" value="2"
												checked> 女
											</label>
										</div>
									</c:if>
									</label>
								</div>
							</div>
						</div>
						<div class="am-form-group">
							<label for="user-phone" class="am-u-sm-3 am-form-label">年龄
								/ Age</label>
							<div class="am-u-sm-9">
								<input type="tel" id="user-phone" name="age"
									value="${children.age }" placeholder="输入你的年龄   / Age">
							</div>
						</div>
						<div class="am-form-group">
							<label for="user-intro" class="am-u-sm-3 am-form-label">特征
								/ Characteristic</label>
							<div class="am-u-sm-9">
								<textarea class="" rows="5" id="user-intro"
									name="characteristic" placeholder="输入特征">${children.characteristic }</textarea>
							</div>
						</div>
						<div class="am-form-group">
							<div class="am-u-sm-9 am-u-sm-push-3">
								<input type="hidden" value="${children.id }" name="id" /> <input
									type="submit" value="保存修改" class="am-btn am-btn-primary" />
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>